package org.fs;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;

/**
 * Hello world!
 *
 */
public class Application 
{
    public static void main( String[] args )
    {
    	BeanFactory factory = new XmlBeanFactory(
    	          new ClassPathResource("application-context.xml"));

    	      FlightScanner fs = (FlightScanner) factory.getBean("flightScanner");
    	      ConnectionScanner cs = (ConnectionScanner) factory.getBean("connectionScanner");
    	      fs.run();
//    	      cs.run();
    }
}
